<header class="head_nav_met_m1156_10_1">
    <nav class="navbar navbar-default met-nav navbar-fixed-top" role="navigation" m-id="1" m-type="head_nav">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle hamburger hamburger-close collapsed" data-target="#navbar-default-collapse" data-toggle="collapse">
                    <span class="sr-only">&nbsp;</span>
                    <span class="hamburger-bar"></span>
                </button>
                <a href="/" class="navbar-brand navbar-logo vertical-align" title="<?=$this->_websiteTitle?>">
                    <h1 hidden><?=$this->_websiteTitle?></h1>
                    <div class="vertical-align-middle"><img src="<?=$this->_themeUrl?>images/logo.png" alt="<?=$this->_websiteTitle?>"></div>
                </a>
            </div>
            <div class="navbar-right vertical-align m-r-0 met-lang">
                <li class="met-langlist nav-item vertical-align" m-id='lang' m-type='lang'>
                    <div class="inline-block dropdown ">
                        <button type="button" data-toggle="dropdown" class="btn btn-outline btn-default btn-squared dropdown-toggle btn-lang">
                            <img src="<?=$this->_themeUrl?>images/flag/cn.gif" alt="简体中文" style="max-width:100%;">
                            <span >简体中文</span>
                        </button>
                        <div class="dropdown-menu dropdown-menu-right animate animate-reverse" id="met-langlist-dropdown" role="menu">
                            <a href="/" title="简体中文" class='dropdown-item' target="_self" >
                                <img src="<?=$this->_themeUrl?>images/flag/cn.gif" alt="简体中文" style="max-width:100%;">
                                简体中文
                            </a>
                            <a href="/" title="English" class='dropdown-item' target="_blank" >
                                <img src="<?=$this->_themeUrl?>images/flag/flag12.gif" alt="English" style="max-width:100%;">
                                English
                            </a>
                        </div>
                    </div>
                </li>
            </div>
            <div class="collapse navbar-collapse navbar-collapse-toolbar" id="navbar-default-collapse">
                <div class="navbar-right search-box">
                    <div class="search-button">
                        <i class="fa-search"></i>
                    </div>
                    <div class="search-form" data-placeholder="您要查找的内容是">
                        <form method="get" class="page-search-form" role="search" action="<?=$this->createUrl('search/index');?>" m-id="search_global" m-type="noContent">
                            <input type="hidden" name="lang" value="cn" />
                            <input type="hidden" name="stype" value="0" />
                            <div class="input-search input-search-dark">
                                <button type="submit" class="input-search-btn"><i aria-hidden="true" class="icon fa-search"></i></button>
                                <input type="text" class="form-control input-lg" name="searchWord" value="" placeholder="请输入搜索关键词！">
                            </div>
                        </form>
                    </div>
                </div>
                <ul class="nav navbar-nav navbar-right navlist">
<?php foreach($this->_commonNav as $menu):?>
    <?php if($menu['children']):?>
                <li class="nav-item m-r-20 dropdown">
                    <a class="link dropdown-toggle <?php if($menu['value']['url'] == $this->_currentUrl){?> active<?php }?>"href="<?=$menu['value']['url'];?>" <?php if($menu['value']['target']=='_blank'):?> target="_blank"<?php endif?> data-hover="dropdown" data-toggle="dropdown"><?=$menu['value']['name'];?><span class="caret"></span></a>
    <?php else:?>
                <li class="nav-item m-r-20">
                    <a class="link <?php if($menu['value']['url'] == $this->_currentUrl){?> active<?php }?>"href="<?=$menu['value']['url'];?>" <?php if($menu['value']['target']=='_blank'):?> target="_blank"<?php endif?>><?=$menu['value']['name'];?></a>
    <?php endif?>
<?php if($menu['children']):?>
                        <ul class="two-menu dropdown-menu dropdown-menu-right bullet">
                            <?php $i=1;?>
                            <?php foreach($menu['children'] as $child):?>
                            <li <?php if($child['children']):?> class="dropdown-submenu"<?php endif?>>
                                <a href="<?=$child['value']['url'];?>" <?php if($child['value']['target']== '_blank'):?> target="_blank" <?php endif?>><?=$child['value']['name'];?></a>
                                <?php if($child['children']):?>
                                <ul class="dropdown-menu animate">
                                    <?php foreach($child['children'] as $childThree):?>
                                    <li>
                                        <a href="<?=$childThree['value']['url'];?>" title="" <?php if($childThree['value']['target']== '_blank'):?> target="_blank"<?php endif?>><?=$childThree['value']['name'];?></a>
                                    </li>
                                    <?php endforeach?>
                                </ul>
                                <?php endif?>
                            </li>
                            <?php $i++;?>
                            <?php endforeach?>
                        </ul>
<?php endif?>
                    </li>
<?php endforeach?>

                </ul>
            </div>
        </div>
    </nav>
</header>